package cn.jetbrain.netbeans.pdfviewer;

import org.openide.cookies.CloseCookie;
import org.openide.cookies.OpenCookie;
import org.openide.loaders.OpenSupport;
import org.openide.windows.CloneableTopComponent;

class PDFOpenSupport extends OpenSupport implements OpenCookie, CloseCookie {
    PDFDataObject o;

    public PDFOpenSupport(PDFDataObject o) {
        super(o.getPrimaryEntry());
        this.o=o;
    }

    protected CloneableTopComponent createCloneableTopComponent() {
        return new PDFViewer(o);
    }
}